@echo off
del d4gohttp.exe
chcp 65001
title Go Build - 现在时间是:%time%
@echo %time% - 开始设置环境变量
set GCC_PATH=C:\Users\admin\MyWork\Tools\TDM-GCC-32\bin
set GOROOTBIN=%GOPATH%\bin
set GOPATHBIN=%GOROOT%\bin
set path=%GCC_PATH%;%GOPATH%;%GOROOT%;%GOROOTBIN%;%GOPATHBIN%
set CGO_ENABLED=1
set GOARCH=386
@echo %time% - 设置环境变量完成
@echo %time% - 编译go
go build
@echo %time% - 编译go完成
d4gohttp.exe